import numpy as np
import  matplotlib.pyplot as plt
import seaborn as sns

#第一题
print(np.random.rand(5))

#第二题
print(np.random.uniform(0,2.0))

#第三题
list1 = []
for i in range(15):

    for j in range(8):
        a = np.random.choice([1, 1, 1, 2, 2, 3, 4, 4, 4, 4])
        list1.append(a)
    print(list1)
    list1 = []

#第四题
random1 = np.random.randn(100)
sns.set_palette("hls")
sns.distplot(random1,color="r",bins=100,kde=True)
plt.show()
